<template>
    <div v-if="istatus">
        <h4>个人中心</h4>
        <van-button type="primary" @click="tui">退出登录</van-button>
    </div>
    <div v-else>
        <van-button type="primary" @click="dl">未登录</van-button>
    </div>
</template>

<script setup>
import { useRouter } from 'vue-router'
let router=new useRouter()
import {ref} from 'vue'
let istatus=ref(true)
const tui=()=>{
    istatus.value=false
}
const dl=()=>{
    router.push('/login')
}
</script>

<style lang="scss" scoped>

</style>